package com.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.base.mapper.voipmapper.CategoriesMapper;
import com.base.po.voip.Categories;
import com.base.po.voip.CategoriesExample;
import com.base.service.CategoriesService;
import org.springframework.stereotype.Service;

@Service("categoriesService")
public class CategoriesServiceImpl implements CategoriesService {
	@Autowired
	private CategoriesMapper categoriesMapper;

	@Override
	public int countByExample(CategoriesExample example) {
		return categoriesMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(CategoriesExample example) {
		return categoriesMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		return categoriesMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Categories record) {
		return categoriesMapper.insert(record);
	}

	@Override
	public int insertSelective(Categories record) {
		return categoriesMapper.insertSelective(record);
	}

	@Override
	public List<Categories> selectByExample(CategoriesExample example) {
		return categoriesMapper.selectByExample(example);
	}

	@Override
	public List<Categories> selectByAgentid(String dpic) {
		return categoriesMapper.selectByAgentid(dpic);
	}

	@Override
	public Categories selectByPrimaryKey(String id) {
		return categoriesMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(Categories record, CategoriesExample example) {
		return categoriesMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(Categories record, CategoriesExample example) {
		return categoriesMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(Categories record) {
		return categoriesMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Categories record) {
		return categoriesMapper.updateByPrimaryKey(record);
	}

}
